﻿using NewsPortal.DataAccess;
using NewsPortal.DataAccess.Abstraction;
using StructureMap.Configuration.DSL;

namespace NewsPortal.Web.Infrastructure.IOC.Registries
{

    public class UnitOfWorkRegistry : Registry
    {
        public UnitOfWorkRegistry()
        {
            this.For(typeof(IUnitOfWork<>)).Use(typeof(SqlUnitOfWork<>)).Ctor<ApplicationDbContext>().Is(new ApplicationDbContext());
        }
    }
}